import { ExtractPropTypes, PropType } from 'vue'
import { _SIZE, _TYPE } from '@/types/global'
export const buttonProps = {
  type: {
    type: String as PropType<_TYPE>,
    default: 'info'
  },
  size: {
    type: String as PropType<_SIZE>,
    default: 'md'
  },
  disabled: Boolean,
  circle: Boolean,
  dashed: Boolean,
  loading: Boolean,
  round: Boolean,
  text: Boolean,
  textColor: String
} as const

export type ButtonProps = ExtractPropTypes<typeof buttonProps>
